package com.zhang.data.mongo.pojo;

import com.zhang.data.mongo.annotation.Collection;
import org.bson.types.ObjectId;

@Collection(name="subject")
public class Subject {

    private ObjectId id;
    private String name;
    private String title;
    private String desc;

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
